<template>
	<view class="goodsDetails">
		<view class="cover">
			<!-- <image src="../../static/images/gugou/bg2.jpg" mode="widthFix"></image> -->
			<image :src="goodsInfo.coverUrl" mode="widthFix"></image>
		</view>
		<view class="info">
			<view class="title">
				<view class="goodsName">
					{{goodsInfo.name}}
				</view>
				<view class="groupLink" @click="goGroupDetail">
					查看团详情>
				</view>
			</view>
			<view class="tags">
				<view class="tag" v-for="(item,index) in goodsInfo.tags" :key="index">
					{{item}}
				</view>
			</view>
		</view>
		<view class="arrange">
			<view class="headLine">
					———————— 排谷详情 ————————
			</view>
			<view class="roleList">
				<view class="roleItem" v-for="(item,index) in goodsInfo.goodsRoleList" :key="index">
					<view class="roleName">
						<view class="">
							{{item.name}}
						</view>
						<view class="" style="color: red;">
							￥{{item.price}}
						</view>
					</view>
					<view class="userList">
						<uni-number-box v-model="role.price" background="#fff"/>
					</view>
				</view>
			</view>
		</view>
		<view class="bottom">
			<view class="des">
				总计
			</view>
			<view class="priceInfo">
				￥330
				<view class="btn">
					锁单付款
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
.goodsDetails{
	background-color: #E3F1F7;
	.cover{
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: #fff;
		image{
			height: 100%;
		}
	}
	.info{
		padding: 20rpx;
		background-color: #fff;
		margin-bottom: 20rpx;
		.title{
			display: flex;
			justify-content: space-between;
			padding: 20rpx;
			font-size: 38rpx;
			.groupLink{
				color: #86B9F8;
				font-size: 26rpx;
			}
		}
		.tags{
			display: flex;
			.tag{
				font-size: 26rpx;
				color: #347CD4;
				background-color: #E3F1F7;
				height: 30rpx;
				line-height: 30rpx;
				margin: 6rpx 12rpx;
				padding: 10rpx 20rpx;
				border-radius: 20rpx;
			}
		}
	}
	.headLine{
		padding:30rpx;
		font-size: 30rpx;
		color: #cbcdd1;
		text-align: center;
	}
	.arrange{
		background-color: #fff;
		margin-bottom: 20rpx;
		padding-bottom: 25rpx;
		.roleList{
			display: flex;
			flex-direction: column;
			padding-left: 20rpx;
			.roleItem{
				display: flex;
				margin-bottom: 20rpx;
				align-items: center;
				.roleName{
					display: flex;
					flex-direction: column;
					justify-content: center;
					align-items: center;
					width: 120rpx;
					height: 100rpx;
					text-align: center;
					// line-height: 100rpx;
					border: 1px solid #E3F1F7;
					padding: 0 20rpx;
					font-size: 28rpx;
				}
			}
		}
	}
	.bottom{
		height: 300rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		.des{
			color: #99d1d4;
		}
		.priceInfo{
			margin: 0 30rpx;
			width: 100rpx;
			height: 50rpx;
			border-radius: 10rpx;
			background-color: #e5f8f8;
			color: #fff;
		}
	}
}
</style>
